import pygame

class Goal(pygame.sprite.Sprite):
    ''' The goal object represents a goal position
        on the grid. Currently nanobots are suppossed
        to move to goal positions but eventually any
        thing could be defined as a goal.
    '''
    loc = None
    color = (0,0,0)
    
    def __init__(self,loc,gridsize):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface([gridsize,gridsize])
        self.image.fill(self.color)
        self.rect = self.image.get_rect()
        self.rect.topleft = [loc[0]*10, loc[1]*10]
        self.loc = loc
        
    def __repr__(self):
        return "Goal"